package com.xce.order.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName MqListener
 * @Description TODO
 * @Author lld
 * @Date 2025/6/17 15:16
 * @Version 1.0
 */

@Component
public class MqListener {

    @RabbitListener(queues = "work.queue")
    public void workQueue(String messgae) {
        System.out.println("【work.queue】接收到消息: "+messgae);
    }
}
